//
//  TestObject.m
//  JustForTest
//
//  Created by YaoZhaofeng on 16/1/19.
//  Copyright © 2016年 YaoZhaofeng. All rights reserved.
//

#import "CategoryObject.h"
#import <objc/runtime.h>

@implementation CategoryObject{
    NSNumber *numberId;
}

- (void)dealloc{
    NSLog(@"dealloc!!!");
}

- (id)init{
    if (self = [super init]) {
        numberId = @0;
    }
    
    return self;
}

- (id)initWithId:(NSNumber *)number{
    if (self = [super init]) {
        numberId = number;
    }
    
    return self;
}

- (void)doSomething{
    NSLog(@"%@",numberId);
    
    NSLog(@"isMainThread::%i",[NSThread isMainThread]);
}


- (void)foo{
    NSLog(@"self class is %@",NSStringFromClass([self class]));
}
@end
